const config = {
    state: () => ({ 
            basic:"南海城市大脑",
            fishery:{
                title:"渔业资源管理系统",
                logo:require('@/assets/logo.png'),
                // 地图搜索默认选项
                defaultExpandedKeys:['1-2-1'],
                defaultCheckedKeys:["1-2", "1-2-1", "1-2-2"],
                // 主体搜索中的行业默认
                search:1
            },
            plant:{
                title:"种植资源管理系统",
                logo:require('@/assets/logo.png'),
                 // 地图搜索默认选项
                defaultExpandedKeys:['1-1-1'],
                defaultCheckedKeys:["1-1", "1-1-1", "1-1-2", "1-1-3", "1-1-4"],
                search:2
            },
        copyright:"@copyright 2021 阿里云计算有限公司出品"
    }),
    getters:{
        systemSplit(state){
            if(localStorage.getItem('SYS_TYPE') === 'SS1'){
                return state.fishery
            }else if(localStorage.getItem('SYS_TYPE') === 'SS2'){
                return state.plant
            }
        },
    }
}
export default config